import axios from '../utils/Axios.js'

export const login = (form) => {
    return axios.post('/user/login',form);
};
export const register = (form) => {
    return axios.post('/user/register',form);
};

export const updata = (form) => {
    return axios.put('/user/updata',form);
}

export const userTotal = () => {
    return axios.get('/user/total');
};
export const getUserById = () => {
    return axios.post('/user');
};
export const getAdmin = () => {
    return axios.get('/user/admin');
};
export const getUser = () => {
    return axios.get('/user/normal');
};
export const swAdmin = (value) => {
    return axios.put('/user/swadmin',value);
};





